package cn.talkimages.web.admin.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.talkimages.web.admin.dao.PhotographerDAO;
import cn.talkimages.web.admin.service.PhotographerService;
import cn.talkimages.web.beans.PhotographerBean;

public class PhotographerServiceImpl implements PhotographerService {

	private PhotographerDAO photographerDAO;

	/**
	 * 取得所属品牌下的所有摄影师
	 * 
	 * @param brandId
	 * @return List<PhotographerBean>
	 * @throws Exception
	 */
	public List<PhotographerBean> getPhotographersByBrandId(Long brandId)
			throws Exception {

		Map<String, Object> params = new HashMap<String, Object>(1);
		params.put("brandId", brandId);

		return photographerDAO.selectPhotographersByBrandId(params);
	}

	public PhotographerDAO getPhotographerDAO() {
		return photographerDAO;
	}

	public void setPhotographerDAO(PhotographerDAO photographerDAO) {
		this.photographerDAO = photographerDAO;
	}

}
